package app.srong.service;

import app.srong.mapper.ScheduleLogMapper;
import app.srong.vo.ScheduleLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class ScheduleLogService {

    @Autowired
    ScheduleLogMapper scheduleLogMapper;

    public void save(String message,String method) {

        ScheduleLog scheduleLog = new ScheduleLog();
        scheduleLog.setCreateTime(LocalDateTime.now());
        scheduleLog.setMessage(message);
        scheduleLog.setMethod(message);

        scheduleLogMapper.insert(scheduleLog);

    }
}
